package com.shop.czlmshop.service;

import com.shop.czlmshop.mapper.CouponMapper;
import com.shop.czlmshop.pojo.Coupon;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: xmy
 * @Date: 2019-05-08 9:35
 * @Version 1.0
 */
@Service
public class CouponServiceImpl implements CouponService {

    @Resource
    private CouponMapper couponMapper;

    /**
     * @description: 查询全部优惠券
     * @param: null
     * @return: List<Coupon>
     * @auther: XMY
     * @date: 2019-05-08 9:30
     */
    @Override
    public List<Coupon> selAllCoupon() {
        return couponMapper.selAllCoupon();
    }
}
